-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
wesleycho
commented
Mar 30, 2016
- Fix sourcemap generation
- Upgrade plugins
- Fix sourcemap generation - Upgrade plugins
This LGTM |
.pipe($.header(config.banner, { | ||
timestamp: (new Date()).toISOString(), pkg: config.pkg | ||
})) | ||
.pipe($.concat('select.css')) | ||
.pipe(gulp.dest('dist')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wesleycho I've had to restore this line locally to get select.css
saved to dist, are you sure it should have been removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not necessary to have sourcemaps unless it's minified, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think what you're saying is correct, double negatives and all 👀
We are always minifying though, I think the maps are generated fine but the unminified css isn't saved to dist.
With:
return gulp.src(['src/common.css'], {base: 'src'})
.pipe($.sourcemaps.init())
.pipe($.header(config.banner, {
timestamp: (new Date()).toISOString(), pkg: config.pkg
}))
.pipe($.concat('select.css'))
.pipe(gulp.dest('dist'))
.pipe($.minifyCss())
.pipe($.concat('select.min.css'))
.pipe($.sourcemaps.write('../dist', {debug: true}))
.pipe(gulp.dest('dist'));
I get
- select.min.css
- select.min.css.map
- select.min.js
- select.min.js.map
- select.css
- select.js
With:
return gulp.src(['src/common.css'], {base: 'src'})
.pipe($.sourcemaps.init())
.pipe($.header(config.banner, {
timestamp: (new Date()).toISOString(), pkg: config.pkg
}))
.pipe($.concat('select.css'))
//.pipe(gulp.dest('dist'))
.pipe($.minifyCss())
.pipe($.concat('select.min.css'))
.pipe($.sourcemaps.write('../dist', {debug: true}))
.pipe(gulp.dest('dist'));
I get:
- select.min.css
- select.min.css.map
- select.min.js
- select.min.js.map
- select.js
Note the missing select.css
, easy enough to fix just wanted to be sure I was doing it right.
Resolves bad changes made in angular-ui#1541 which caused no select.css to be generated as part of the build.
Resolves bad changes made in #1541 which caused no select.css to be generated as part of the build.
Resolves bad changes made in angular-ui#1541 which caused no select.css to be generated as part of the build.
Resolves bad changes made in angular-ui#1541 which caused no select.css to be generated as part of the build.